Taking what you have already coded:
Code:
#include <string>
IOScreen::IOScreen(int row, int col, int width, int height){
this->row = row;
this->col = col;
this->width = width;
this->height = height;
cio_start();
cio_cursor(row,col);
// Adjust window settings for this constructor using height and width
std::cout << std::string(width,'*');
for (int i=1; i<height-1; ++i)
{
cio_cursor(row+i,col);
std::cout << '*';
cio_cursor(row+i,col+width-1);
std::cout << '*';
}
//Draw the bottom of the border
}
Replace cout with the appropriate output command, if you are using something different to output characters. Instead of std::string, you could also use a for-loop to draw the top of the border.